package models_main

import (
	"fmt"
	"longmen/server/pkg/db/mysql/models"
	"time"
)

type VisitorLog struct {
	Id         int       `json:"id" gorm:"primaryKey;autoIncrement"` //int(10) NOT NULL AUTO_INCREMENT
	Uid        int       `json:"uid"`                                //int(10) DEFAULT NULL COMMENT '被访问用户id'
	Visitorid  int       `json:"visitorid"`                          //int(10) DEFAULT NULL COMMENT '访客id'
	CreateTime time.Time `json:"create_time"`                        //datetime DEFAULT NULL,
}

func (VisitorLog) TableName() string {
	return fmt.Sprintf("%svisitor_log", models.Prefix)
}
